<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title>后台管理</title>

		<script type="text/javascript">
            $(function(){
                $("#order").addClass("active");
                $("#order").find("ul li").eq(0).addClass("active");
            })
		</script>
	</head>
	<body>
		<div class="admin">
			<div class="panel admin-panel">
			    <div class="panel-head">
					<div class="line-middle">
						<div class="x3">
							<strong>订单号：</strong>${order1.oid}
						</div>

						<c:if test='${order.status eq "待付款"}'>
							<div class="x3">
								<strong>状态：</strong>${order1.status }
							</div>
						</c:if>

						<c:if test='${order.status eq "已付款"}'>
							<div class="x3" style="color: red;">
								<strong>状态：</strong>${order1.status }
							</div>
						</c:if>

						<div class="x3">
							<s:if test="order1.paymethod=='微信支付'">
							<strong >总价：￥</strong>${order1.allprice }(不含邮费)
							</s:if>
							<s:elseif test="order1.paymethod=='积分支付'">
							<strong>总积分：</strong>${order1.allscore}
							</s:elseif>
						</div>
						<div class="x3">
							<strong>付款方式：</strong>${order1.paymethod}
						</div>
						<div class="x3">

							<c:if test='${order1.status eq "待付款"}'>
								<a class="button border-yellow button-little"
									href="order!delete1.action?order.oid=${order1.oid}">删除</a>
							</c:if>

							<c:if test='${order.status eq "已付款"}'>
								<c:if test='${order.fhstatus eq "已发货"}'>
									<a class="button border-green button-little" href="#">${order.fhstatus}</a>
								</c:if>
								<c:if test='${order.fhstatus eq "待发货"}'>
									<a class="button border-gray button-little"
										href="order!fahuo1.action?order.oid=${order.oid}">${order.fhstatus}</a>
								</c:if>
							</c:if>
						</div>
					</div>
				</div>
				<table class="table table-hover">
				   <s:if test="order1.paymethod=='微信支付'">
					<s:iterator value="order1.order0s">
						<tr>
							<td>
							    
								<img alt="" style="width:80px;height:80px;"
									src="<%=request.getContextPath()%>/<s:property value="product.img"/>">
							</td>
							<td>
								<s:property value="product.title" /></br>
								<s:property value="guige1value" />&nbsp;
								<s:property value="guige2value" />&nbsp;
								<s:property value="guige3value" />
							</td>
							<td>
								价格：<s:property value="product.price" />
							</td>
							<td>
								数量：<s:property value="num" />
							</td>
							<td>
								总价：<s:property value="product.price*num" />
							</td>
						</tr>
					</s:iterator>
					</s:if>
				
				</table>
			    
				
				

				<div style="margin-top:20px; ">
					<table class="table">
						<tr>
							<td width="200px;">收货人</td>
							<td><s:property value="order1.name" /></td>
						</tr>
						<tr>
							<td>联系电话</td>
							<td><s:property value="order1.phone" /></td>
						</tr>
						<tr>
							<td>收货地址</td>
							<td>
								<s:property value="order1.province" />
								<s:property value="order1.city" />
								<s:property value="order1.qu" />
								<s:property value="order1.address" />
							</td>
						</tr>
						<tr>
							<td>订单号</td>
							<td><s:property value="order1.oid" /></td>
						</tr>
						<tr>
							<td>快递公司</td>
							<td><s:property value="order1.postcompany" default="暂无"/></td>
						</tr>
						<tr>
							<td>运单号</td>
							<td><s:property value="order1.postnum" default="暂无"/></td>
						</tr>
						<tr>
							<td>邮费</td>
							<td>￥<s:property value="order1.postfee" /></td>
						</tr>
						<tr>
							<td>下单时间</td>
							<td><s:property value="order1.time1" /></td>
						</tr>
						<tr>
							<td>支付时间</td>
							<td><s:property value="order1.time2" default="未支付"/></td>
						</tr>
						<tr>
							<td>备注</td>
							<td><s:property value="order1.beizhu" /></td>
						</tr>
					</table>
					
				</div>
</div>




			</div>
			<br />
		</div>
	</body>
</html>